<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
	<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript">
        function on_query_finger(index){
          var rows = $('#customer_table').datagrid('getRows');
		  $('#deptno').text(rows[index].deptno);
		  $('#identifyno').text(rows[index].identifyno);
		  $('#identifyno_val').val(rows[index].identifyno);
		  $('#name').text(rows[index].name);
          $('#query_cfinger_detail_panel').window('open');
          $('#link_status input').attr('disabled', true);
		  $('#modmgr').text(rows[index].modmgr);
		  $('#checkflag').text(rows[index].checkFlagName);
		  $('#checker').text(rows[index].checker);
		  set_finger_status(rows[index].fingerstatus);
		  set_link_status(rows[index].linkStatus);
        }
        function on_query_finger_ui(value,row,index){
          return '<a href="#" class="infoclass" onclick="on_query_finger('+index+')">详细信息</a>';
        }
        function nodeClicked(node){
     		new_data_grid('#customer_table',make_customer_finger_table_fields(
  	      		'详细信息',on_query_finger_ui),'queryFingerCustomersByDept',
  	        	{deptno:node.id},16);
        }
    	$(document).ready(function(){
    		$('#sel_customer_dept_pane').panel();
    		$('#depttree').tree({url:'queryDeptTree.action',onClick:nodeClicked,
    		  onLoadError: function(){alert('系统错误，服务器可能已关闭！')}});
     		$('#query_cfinger_panel').panel({onClose:function(){
          		$("#sel_customer_dept_pane").panel("destroy");
     		}});

     		set_customer_finger_query_action(null,'#customer_table','详细信息',on_query_finger_ui,
     			'queryFingerCustomersByIdnoOrName',16);
    	});
    </script>
	</head>
	<body>
	<s:include value="querycfingerdetail.jsp"></s:include>
    <div id="query_cfinger_panel" collapsible="false" fit="true" title="查询客户指纹" 
    	resizable="false" collapsible="false" minimizable="false" maximizable="false"
    	closable="true" icon="icon-save" class="jquery_panel">
    	<table width="100%" height="94%">
    		<tr>
    			<td width="260px"><div id="sel_customer_dept_pane" collapsible="false" fit="true" 
    				title="选择客户机构" resizable="false" collapsible="false" minimizable="false" 
    				maximizable="false" noheader="false" closable="false" 
    				style="margin:0px;padding:0px;overflow-y:scroll">
    				<ul id="depttree"></ul></div></td>
    			<td>
    			<table width="100%" height="100%">
    				<tr valign="top" height="20"><td class="param_form_css">
    					<s:include value="/app/query_customer_param.jsp"/></td></tr>
    				<tr valign="top"><td ><table id="customer_table" title="已采集指纹的客户" singleSelect="true" 
    					fit="true" fitColumns="true"></table>
    				</td>
    				</tr>
    			</table>
 				</td>
    		</tr>
    	</table>
    </div>
    
    </body>
</html>